package com.hl.shifangzhiyu.web;


import com.hl.shifangzhiyu.pojo.Regions;
import com.hl.shifangzhiyu.service.RegionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/regions")
public class RegionsController {
    @Autowired
    private RegionsService regionsService;
    @RequestMapping("/listAll")
    public List<Regions> listAll(){
        return regionsService.listAll();
    }


}
